package com.bestcem.xm.txtanls.dao.mapper;

import com.bestcem.xm.txtanls.entity.mysql.IndustryKeywordEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 行业关键词管理
 *
 * @author qiongyu.cui <qiongyu.cui@idiaoyan.com>
 * @version V1.0
 * @date 2021/9/27 13:14
 */
@Mapper
public interface IndustryToKeywordMapper {

    /**
     * 批量插入行业关键词
     * @param industryKeywordDOS
     * @return
     */
    int batchInsertOrgIndustryKeyword(@Param("list") List<IndustryKeywordEntity> industryKeywordDOS);

    /**
     *
     * 根据组织id和行业id查询行业关键词
     *
     * @param orgId      组织id
     * @param industryId 行业id
     * @return 行业关键词
     * @author cuiqiongyu <qiongyu.cui@idiaoyan.cn>
     * @date 2021/09/29 15:55
     */
    List<IndustryKeywordEntity> findOrgIndustryKeyword(@Param("orgId") String orgId, @Param("industryId") String industryId);

    void insertEntity(@Param("item") IndustryKeywordEntity item);
}
